<!DOCTYPE html>
<title>Test that moving video element to a new document and performing an operation on it doesn't crash.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
async_test(function(t) {
    var v = document.createElement('video');
    v.src = 'content/test.ogv';
    v.oncanplaythrough = t.step_func(function() {
        var newDoc = document.implementation.createDocument( "", null);
        newDoc.adoptNode(v);
        // Performing seek operation on the video element after moving
        // it to a new document should not crash.
        v.currentTime = 1.25;
        t.done();
    });
});
</script>
